<?php
/**
 * Created by PhpStorm.
 * User: cby
 * Date: 2017/7/27
 * Time: 9:21
 */
namespace app\cut_pic\validate;
use think\Validate;
class Vali extends Validate
{
    protected $rule = [
        'local_url'  => 'require',
        'size'   => 'require'
    ];

    protected $message = [
        'local_url.require' => '地址必须',
        'size.require'   => '文件大小不为空'
    ];

    protected $scene = [
        'add'   =>  ['local_url','size'],
        'edit'  =>  ['local_url','size'],
    ];
}